Skip to content

Conversation

@rytswd
Copy link
Member

@rytswd rytswd commented Oct 7, 2025

This introduces the multi Go module setup, where each module can have separate dependencies.

For local development, you can ensure LSP checks at one go.mod by opening at the module root directory, or use go.work and go workspace setup to allow opening up from the repository root. There is some mention about Go workspace usage included in the document as well.

NOTE: I have added test impl of main.go, as well as go.work which is only meant to be used locally. This is just to demonstrate how we can handle the configuration, and that commit should be removed before this can be merged.

This has been removed.

@rytswd rytswd force-pushed the multi-go-module-setup branch from f690bdc to 3c24a99 Compare October 8, 2025 23:41
@rytswd rytswd changed the title DO NOT MERGE: Multi go module setup Multi go module setup Oct 8, 2025
Copy link
Collaborator

@rcambrj rcambrj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work, only minor comments.

**Controller Changes** (`pkg/{module}/controller/`):
- Run tests in the specific module: `cd pkg/resource-handler && go test ./...`
- Integration tests catch reconciliation bugs early
- Use `make run` for quick iteration (no docker build needed)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I realise that this line is unchanged - just pointing out that we should remember to create a Makefile with a run target :D

@rytswd rytswd requested a review from rcambrj October 9, 2025 12:20
@rytswd rytswd merged commit 6a30bca into main Oct 9, 2025
8 checks passed
@rytswd rytswd deleted the multi-go-module-setup branch October 9, 2025 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants